
// MainFrm.h : interface of the CMainFrame class
//
#include "wmcaintf.h"
#include "Login.h"
//#include "UtilFunc.h"
#pragma once


class CMainFrame : public CMDIFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	CMainFrame();

// Attributes
public:

// Operations
public:
	CWmcaIntf	m_wmca;
	CLogin		m_loginDlg;
	LOGININFO	m_loginInfo;
// Overrides
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

// Implementation
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:  // control bar embedded members
	CToolBar          m_wndToolBar;
	CStatusBar        m_wndStatusBar;

	void OnWmConnected(LOGINBLOCK* pLogin);
	void OnWmDisconnected();
	void OnWmSocketerror(int socket_error_code);
	void OnWmReceivedata(OUTDATABLOCK* pOutData);
	void OnWmReceivesise(OUTDATABLOCK* pSiseData);
	void OnWmReceivemessage(OUTDATABLOCK* pMessage);
	void OnWmReceivecomplete(OUTDATABLOCK* pOutData);
	void OnWmReceiveerror(OUTDATABLOCK* pError);
// Generated message map functions
protected:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg LRESULT OnWmcaEvent(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()

};


